<%@ page import="ie.com.stamply.security.User" %>

<div class="fieldcontain ${hasErrors(bean: userInstance, field: 'username', 'error')} required"> 

	<label for="username">
		<g:message code="user.username.label" default="Username"  />
		<span class="required-indicator">*</span>
	</label>
	<g:textField name="username" required="" value="${userInstance?.username}" class='text_'/>
</div>

<div class="fieldcontain ${hasErrors(bean: userInstance, field: 'email', 'error')} required"> 

	<label for="email">
		<g:message code="user.email.label" default="Email" />
		<span class="required-indicator">*</span>
	</label>
	<g:textField name="email" required="" value="${userInstance?.email}" class='text_'/>
</div>

<div class="fieldcontain ${hasErrors(bean: userInstance, field: 'password', 'error')} required">
	<label for="password">
		<g:message code="user.password.label" default="Password" />
		<span class="required-indicator">*</span>
	</label>
	<g:textField name="password" required="" value="${userInstance?.password}" class='text_'/>
</div>    

<div class="fieldcontain ${hasErrors(bean: userInstance, field: 'business', 'error')} ">
	<label for="role">
		<g:message code="user.business.label" default="Are you a business ?" />
		<span class="required-indicator">*</span>
	</label>
	<g:checkBox name="business" value="${userInstance?.business}" />
</div>